package com.songlanyun.modules.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.enums.GoodsConstant;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.account.entity.UserServiceAreaTemporaryEntity;
import com.songlanyun.modules.account.model.dto.SelectAreaDTO;

import java.util.List;
import java.util.Map;

/**
 * 会员服务地区关系表（支付成功前临时存储）
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-15 11:20:13
 */
public interface UserServiceAreaTemporaryService extends IService<UserServiceAreaTemporaryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 支付成功前临时存储会员服务地区的关系
     *
     * @param userId                会员
     * @param dto
     */
    void updateServiceArea(Long userId, List<SelectAreaDTO> dto);

}

